<template>
  <div class="home">
    <button type="info" @click="lgout">退出</button>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    lgout() {
      window.sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped></style>
